#include<cstdio>
using namespace std;
int *p;
int main()
{
	int n;
	scanf("%d",&n);
	p=new int[n+1];
	for (int i=1;i<=n;i++) scanf("%d",&p[i]);
	for (int i=2;i<=n;i++) p[i]+=p[i-1];
	for (int i=1;i<=n;i++) printf("%d ",p[i]);
	delete []p;
	
	return 0;
}